@layout("/backend/common/_container.html"){
<div class="dhcc-form" id="resourceInfoForm">
    <#Hidden id="id" value="${resource.id}"/>
    <#Hidden id="resTypeValue" value="${resource.resType}"/>
    <#Input id="name" name="名称" value="${resource.name}" />
    <#Input id="perms" name="资源权限" value="${resource.perms}" />
    <#Input id="parentName" name="父级编号" value="${resource.parentName}"
    hidden="parentId" readonly="readonly" hiddenValue="${resource.parentId}"
    clickFun="ResourceInfoDlg.showResourceSelectTree(); return false;"
    style="background-color: #ffffff !important;"
    selectFlag="true" selectId="pTreeDiv" selectTreeId="pTree" selectStyle="width:244px !important;"/>
    @var resTypeMap={'1':'目录','2':'菜单','3':'权限'};
    <#Select id="resType" name="资源类型" map="${resTypeMap}" value="${resource.resType}" onSelect="ResourceInfoDlg.selectResType">
</#Select>
<div id="url_collapse" class="collapse">
    <#Input id="url" name="请求地址" value="${resource.url}" />
</div>
<div id="icon_collapse" class="collapse">
    <#Iconselect id="icon" name="图标" value="${resource.icon}"/>
</div>
<#Input id="weight" name="排序" value="${resource.weight}" type="number" />

<div class="toolbar">
    <#Button name="保存" id="ensure" icon="icon-w-save" clickFun="ResourceInfoDlg.editSubmit()"/>
    <#Button btnCss="l-bt-red" name="关闭" id="cancel" icon="icon-w-close" clickFun="ResourceInfoDlg.close()"/>
</div>
</div>
<script src="${ctxPath}/static/backend/system/resource/front/resource_info.js"></script>
@}
